<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
        <title>CruiseControl.NET : Ftp task - Publisher</title>
	    <link rel="stylesheet" href="styles/site.css" type="text/css" />
        <META http-equiv="Content-Type" content="text/html; charset=UTF-8">	    
    </head>

    <body>
	    <table class="pagecontent" border="0" cellpadding="0" cellspacing="0" width="100%" bgcolor="#ffffff">
		    <tr>
			    <td valign="top" class="pagebody">
				    <div class="pageheader">
					    <span class="pagetitle">
                            CruiseControl.NET : Ftp task - Publisher
                                                    </span>
				    </div>
				    <div class="pagesubheading">
					    This page last changed on Jun 28, 2009 by <font color="#0050B2">williams</font>.
				    </div>

				    <p>The ftp task / publisher allows to download or upload files/ folders, for example, uploading a new version of a web page to ftp site of an ISP.<br/>
available from 1.5 onwards.</p>

<h4><a name="Ftptask-Publisher-Examples"></a>Examples</h4>

<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="code-java">&lt;ftp&gt;
	&lt;serverName&gt;ftp.isp.com&lt;/serverName&gt;
	&lt;userName&gt;john&lt;/userName&gt;
	&lt;password&gt;doe&lt;/password&gt;
	&lt;action&gt;UploadFolder&lt;/action&gt;
	&lt;ftpFolderName&gt;site/config&lt;/ftpFolderName&gt;
	&lt;localFolderName&gt;d:\website\config&lt;/localFolderName&gt;
	&lt;recursiveCopy&gt;<span class="code-keyword">true</span>&lt;/recursiveCopy&gt;
&lt;/ftp&gt;</pre>
</div></div>
<p>This will upload all files and folders from d:\website\config to  ftp.isp.com/&lt;user log in folder&gt;/site/config .</p>
<table class='confluenceTable'><tbody>
<tr>
<th class='confluenceTh'> Node </th>
<th class='confluenceTh'> Description </th>
<th class='confluenceTh'> Type </th>
<th class='confluenceTh'> Required </th>
<th class='confluenceTh'> Default </th>
<th class='confluenceTh'> Version </th>
</tr>
<tr>
<td class='confluenceTd'> serverName </td>
<td class='confluenceTd'> the name of the server to connect to </td>
<td class='confluenceTd'> string </td>
<td class='confluenceTd'> true <br clear="all" /> </td>
<td class='confluenceTd'> N/A </td>
<td class='confluenceTd'>&nbsp;</td>
</tr>
<tr>
<td class='confluenceTd'> userName </td>
<td class='confluenceTd'> the user to log in with </td>
<td class='confluenceTd'> string <br clear="all" /> </td>
<td class='confluenceTd'> true <br clear="all" /> </td>
<td class='confluenceTd'> N/A <br clear="all" /> </td>
<td class='confluenceTd'>&nbsp;</td>
</tr>
<tr>
<td class='confluenceTd'> password </td>
<td class='confluenceTd'> password of the user <br clear="all" /> </td>
<td class='confluenceTd'> string <br clear="all" /> </td>
<td class='confluenceTd'> true <br clear="all" /> </td>
<td class='confluenceTd'> n/a </td>
<td class='confluenceTd'>&nbsp;</td>
</tr>
<tr>
<td class='confluenceTd'> action </td>
<td class='confluenceTd'> upload or download(UploadFolder/DownloadFolder) </td>
<td class='confluenceTd'> enum </td>
<td class='confluenceTd'> false </td>
<td class='confluenceTd'> DownloadFolder </td>
<td class='confluenceTd'>&nbsp;</td>
</tr>
<tr>
<td class='confluenceTd'> ftpFolderName </td>
<td class='confluenceTd'> the folder name of at the ftp site </td>
<td class='confluenceTd'> string </td>
<td class='confluenceTd'> true </td>
<td class='confluenceTd'> <em>None</em> </td>
<td class='confluenceTd'>&nbsp;</td>
</tr>
<tr>
<td class='confluenceTd'> localFolderName </td>
<td class='confluenceTd'> the folder name at the local system </td>
<td class='confluenceTd'> string </td>
<td class='confluenceTd'> true </td>
<td class='confluenceTd'> <em>None</em> </td>
<td class='confluenceTd'>&nbsp;</td>
</tr>
<tr>
<td class='confluenceTd'> recursiveCopy </td>
<td class='confluenceTd'> recurse into subfolders or not </td>
<td class='confluenceTd'> bool </td>
<td class='confluenceTd'> false <br clear="all" /> </td>
<td class='confluenceTd'> <em>true</em> </td>
<td class='confluenceTd'>&nbsp;</td>
</tr>
<tr>
<td class='confluenceTd'> dynamicValues </td>
<td class='confluenceTd'> Any dynamic parameters to be used. See <a href="Dynamic Parameters.html" title="Dynamic Parameters">Dynamic Parameters</a> </td>
<td class='confluenceTd'> Dynamic values array - see <a href="Dynamic Parameters.html" title="Dynamic Parameters">Dynamic Parameters</a> </td>
<td class='confluenceTd'> No </td>
<td class='confluenceTd'> <em>None</em> </td>
<td class='confluenceTd'>&nbsp;</td>
</tr>
</tbody></table>

				    
                    			    </td>
		    </tr>
	    </table>
	    <table border="0" cellpadding="0" cellspacing="0" width="100%">
			<tr>
				<td height="12" background="http://confluence.public.thoughtworks.org//images/border/border_bottom.gif"><img src="images/border/spacer.gif" width="1" height="1" border="0"/></td>
			</tr>
		    <tr>
			    <td align="center"><font color="grey">Document generated by Confluence on Sep 29, 2009 20:59</font></td>
		    </tr>
	    </table>
    </body>
</html>